import './assets/main.css'
import axios from 'axios'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import App from './app.vue'
import router from './router/index.js'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ECharts from "vue-echarts";
import * as echarts from "echarts"

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.component("v-chart", ECharts)
app.config.globalProperties.$echarts = echarts

axios.defaults.baseURL = 'http://localhost:8000';
axios.defaults.withCredentials = true
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.mount('#app')

